package start.demo01.datatype;

import org.junit.Test;

public class IntTest {

    public static void main(String[] args){
        IntTest it=new IntTest();
        it.test1();
    }

    public void test1(){
        Integer i1 = new Integer('a');
        Integer i2 = new Integer("7");
        //i2="21";
        //Integer i4 = new Integer("0x10");
        Character b = new Character('a');
        Boolean c = new Boolean(null);
        System.out.println(i1);
        System.out.println("i2:"+i2);
        //System.out.println(i4);
        System.out.println(b);
        System.out.println(c);
    }
    @Test public void t0(){
        long num=(long)Math.pow(2,64);
        System.out.println(num);
        System.out.println(Math.pow(2,64));
    }
    @Test
    public void t1(){
        Long i1=330L;
        Long i2=330L;
        //i1=i2;
        System.out.println(i1.equals(i2));
    }
    @Test
    public void t2(){
        System.out.println(125822/1024);
        System.out.println((long)1234);
    }
}
